package com.dy.lock.screen.dao;

import com.dy.lock.screen.pojo.AdvertCollectInfo;

public interface AdvertCollectDao extends BaseDao<AdvertCollectInfo, String> {

	/**
	 * 根据广告id和用户id删除已收藏的广告
	 * 
	 * @param adId
	 * @param userId
	 * @return
	 */
	public int deleteByAdAndUser(AdvertCollectInfo collectInfo);

	/**
	 * 通过广告id和用户id查询
	 * 
	 * @param collectInfo
	 * @return
	 */
	public AdvertCollectInfo queryByAdAndUser(AdvertCollectInfo collectInfo);
}
